package com.mushuilingfeng.ddd.user.bo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * @author
 * @date 2024/9/29
 */
@Data
@Schema(description = "用户注册参数")
public class UserRegisterBO {
    @NotBlank(message = "{tel.number.canNotBeEmpty}")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "{tel.number.format.error}")
    @Schema(description = "手机号")
    private String tel;
    
    @NotBlank(message = "{login.password.canNotBeEmpty}")
    @Schema(description = "密码")
    private String password;
    
    @NotBlank(message = "{verify.code.canNotBeEmpty}")
    @Schema(description = "验证码")
    private String verifyCode;
}
